package cn.glutnn.service.impl;

import cn.glutnn.service.PaymentService;
import cn.glutnn.service.OrdersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PaymentServiceImpl implements PaymentService {

    @Autowired
    private OrdersService ordersService;

    @Override
    public boolean updateOrderStatus(String orderId, String status, Integer paymentMethodId, Integer daId) {
        try {
            ordersService.updateOrderStatus(orderId, status, paymentMethodId, daId);
            return true;
        } catch (Exception e) {
            return false;
        }
    }
}